﻿namespace Cellfish.Toolbox.Core
{
    internal class Result<T>
    {
        public Result(bool isSuccess)
            : this(isSuccess, default(T))
        {
        }

        public Result(bool isSuccess, T value)
        {
            this.IsSuccess = isSuccess;
            this.Value = value;
        }

        public T Value { get; private set; }

        public bool IsSuccess { get; private set; }
    }
}